﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SecurityApi.Model
{
    public class Application
    {
        [DisplayName("Code")]
        public int ApplicationId { get; set; }

        [DisplayName("Name")]
        public string Name { get; set; }

        [DisplayName("Title")]
        public string Title { get; set; }

        [DisplayName("Active")]
        public bool Active { get; set; }

        [DisplayName("Area")]
        public string Area { get; set; }

        [DisplayName("DefaltController")]
        public string DefaltController { get; set; }

        [DisplayName("DefaltAction")]
        public string DefaltAction { get; set; }

        public Enterprise Enterprise { get; set; }

        public int? DisplayOrder { get; set; }

        public Application()
        {

        }

        public Application(int id, string name, string title)
        {
            ApplicationId = id;
            Name = name;
            Title = title;
            DefaltController = "Home";
            DefaltAction = "Index";
        }

        public Application(int id, string name, string title, string area)
        {
            ApplicationId = id;
            Title = title;
            Area = area;
            Name = name;

            DefaltController = "Home";
            DefaltAction = "Index";
        }

    }

}
